package fr.gest4team.app.pilotage.dao;


import org.hibernate.criterion.DetachedCriteria;

import fr.gest4team.app.pilotage.dao.abstrait.AbstractActiviteDao;
import fr.gest4team.app.pilotage.dao.interfaces.IActiviteDao;
import fr.gest4team.app.pilotage.dto.Activite;

import java.util.List;

/**
 * Dao modifiable 
 * @see fr.gest4team.app.pilotage.dto.Activite
 */
public class ActiviteDao 
    extends AbstractActiviteDao 
    implements IActiviteDao {
    
    /**
     * @author brug
     * @return retourne la liste des Activites. 
     */
    public List<Activite> chargerListeActivite() {
        final DetachedCriteria criteria = DetachedCriteria
                .forClass(Activite.class);
        return executeDetachedCriteria(criteria);
     }
}